namespace StaffingSystem.EF
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Viewone")]
    public partial class Viewone
    {
        [Key]
        [Column(Order = 0)]
        [StringLength(20)]
        public string Name { get; set; }

        [Key]
        [Column(Order = 1)]
        public bool Sex { get; set; }

        [Key]
        [Column(Order = 2)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Age { get; set; }

        [Key]
        [Column(Order = 3)]
        [StringLength(10)]
        public string Nation { get; set; }

        [Key]
        [Column(Order = 4)]
        [StringLength(20)]
        public string Education { get; set; }

        [Key]
        [Column(Order = 5)]
        [StringLength(18)]
        public string IDNumber { get; set; }

        [Key]
        [Column(Order = 6)]
        [StringLength(11)]
        public string Phone { get; set; }

        [Key]
        [Column(Order = 7)]
        [StringLength(50)]
        public string Address { get; set; }

        public int? Pay { get; set; }

        [Key]
        [Column(Order = 8)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Intone { get; set; }

        [Key]
        [Column(Order = 9)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Inttwo { get; set; }

        [Key]
        [Column(Order = 10)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int IntId { get; set; }

        [Key]
        [Column(Order = 11)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int PerID { get; set; }

        [Key]
        [Column(Order = 12)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }

        [Key]
        [Column(Order = 13)]
        public DateTime AddTime { get; set; }
    }
}
